package chainOfResponsibility;

public class ConcreteHandlerOne extends Handler{
    @Override
    public void handleRequest(String request) {
        //if是本责任处理，否则传递给下一个
        if (request.equals("one")) {
            System.out.println("solve one");
        } else {
            if (getHandler() != null) {
                getHandler().handleRequest(request);
            }
        }
    }
}
